package com.bootdo.api.controller;

import com.bootdo.api.service.ApiService;
import com.bootdo.common.utils.PageUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

@Controller
@RequestMapping("/api/api")
public class ApiController {
    @Autowired
    private ApiService apiService;
    @ResponseBody
    @GetMapping("/list")
//    @RequiresPermissions("oa:notify:notify")
    public PageUtils list(@RequestParam Map<String, Object> params) {
        PageUtils pageUtils = new PageUtils(apiService.list(), 1);
        return pageUtils;

    }
}
